/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconScan: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M832 608a32 32 0 0 1 31.776 28.256L864 640v160a96 96 0 0 1-90.368 95.84L768 896H256a96 96 0 0 1-95.84-90.368L160 800v-160a32 32 0 0 1 63.776-3.744L224 640v160a32 32 0 0 0 28.256 31.776L256 832h512a32 32 0 0 0 31.776-28.256L800 800v-160a32 32 0 0 1 32-32z m64-128a32 32 0 0 1 3.744 63.776L896 544H128a32 32 0 0 1-3.744-63.776L128 480h768zM768 128a96 96 0 0 1 95.84 90.368L864 224v160a32 32 0 0 1-63.776 3.744L800 384V224a32 32 0 0 0-28.256-31.776L768 192H256a32 32 0 0 0-31.776 28.256L224 224v160a32 32 0 0 1-63.776 3.744L160 384V224a96 96 0 0 1 90.368-95.84L256 128h512z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconScan.defaultProps = {
  size: 18,
};

export default IconScan;
